negotiator.boaframework
Class OfferingStrategy

java.lang.Object
  extended by negotiator.boaframework.OfferingStrategy

public abstract class OfferingStrategy
extends java.lang.Object

Describes a bidding strategy of an agent of the BOA framework. Tim Baarslag, Koen Hindriks, Mark Hendrikx, Alex Dirkzwager and Catholijn M. Jonker. Decoupling Negotiating Agents to Explore the Space of Negotiation Strategies

Version:
15-12-11
Author:
Alex Dirkzwager, Mark Hendrikx

Constructor Summary
OfferingStrategy()
           
 
Method Summary
abstract  BidDetails determineNextBid()
          Determines the next bid the agent will offer to the opponent
abstract  BidDetails determineOpeningBid()
          Determines the first bid to be offered by the agent
 SharedAgentState getHelper()
          Return the Helper-object.
 BidDetails getNextBid()
           
 void init(NegotiationSession negotiationSession, OpponentModel opponentModel, OMStrategy omStrategy, java.util.HashMap<java.lang.String,java.lang.Double> parameters)
          Initializes the offering strategy.
 boolean isEndNegotiation()
           
 void setNextBid(BidDetails nextBid)
          Set the next bid of the agent.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfferingStrategy

public OfferingStrategy()
Method Detail

init

public void init(NegotiationSession negotiationSession,
                 OpponentModel opponentModel,
                 OMStrategy omStrategy,
                 java.util.HashMap<java.lang.String,java.lang.Double> parameters)
          throws java.lang.Exception
Initializes the offering strategy. If parameters are used, this method should be overridden.

Parameters:
negotiationSession - state of the negotiation.
opponentModel - opponent model which may be used.
omStrategy - opponent model strategy which may be used.
parameters - optional parameters for the offering strategy.
Throws:
java.lang.Exception - if the offering strategy fails to initialize.

determineOpeningBid

public abstract BidDetails determineOpeningBid()
Determines the first bid to be offered by the agent

Returns:
the opening bid of the agent.

determineNextBid

public abstract BidDetails determineNextBid()
Determines the next bid the agent will offer to the opponent

Returns:
bid to offer to the opponent.

getNextBid

public BidDetails getNextBid()
Returns:
next bid to be offered to the opponent.

setNextBid

public void setNextBid(BidDetails nextBid)
Set the next bid of the agent. This method is automatically called by the BOA framework.

Parameters:
nextBid - to offer to the opponent.

getHelper

public SharedAgentState getHelper()
Return the Helper-object. A helper is used to hold the code shared between the offering strategy and acceptance strategy. A good design does not require a helper.

Returns:
helper with shared code.

isEndNegotiation

public boolean isEndNegotiation()
Returns:
true if the negotiation should be ended.